<?php

$actions = array();
$actions['detail'] = 'object_detail.php';
// Wrapper for old definition of object_detail 
$actions['view'] = 'object_detail.php';
$actions['find'] = 'object_find.php';
$actions['show'] = 'china_show.php';
$actions['add'] = 'object_add.php';
$actions['del'] = 'object_del.php';
$actions['edit'] = 'object_edit.php';
// Wrapper for old references
$actions['add_image'] = 'image_add.php';
$actions["overview"] = "object_overview.php";

if (isset($_GET['action'], $actions[$_GET['action']])) {
    log_message("[china.php] Action '" . $_GET['action'] ."' empfangen.");
    log_message("[china.php] Lade: " . $actions[$_GET['action']]);
    
    return include $actions[$_GET['action']];
}
return include $actions["overview"];
log_message("[china.php] Keine $actions gefunden.")
?>

